package com.int_tech.carLocation.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by Administrator on 2017/9/8.
 */
@Entity
@Table(name = "cm_carLocation")
@DynamicInsert
@DynamicUpdate
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class CarLocation {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Integer id;
    //车牌号
    @Column(length =64)
    private String carNumber;

    //传感器多少列
    @Column(length =64)
    private String line;

    //传感器多少行
    @Column(length =64)
    private String row;

    //测量数据最大值
    @Column(length =64)
    private String maximum;

    //测量数据最小值
    @Column(length =64)
    private String minimum;

    //颜色深度
    @Column(length =64)
    private String colour;

    //数据格林威治时间
    @Column(length =64)
    private  String datadate;

    //数据字符串时间
    @Column(length =64)
    private String date;

    //经度
    @Column(length =64)
    private String lng;

    //维度
    @Column(length =64)
    private  String lat;

    //地址
    @Column(length =64)
    private String address;

    //测量结果标示
    @Column(length =64)
    private  String resultMark;

    //测量结果百分比
    @Column(length =64)
    private String percent;

    //测量数据标示
    @Column(length =64)
    private String dataMark;

    //测量数据 “,” 分割
    private String data;

    //创建时间
    @Temporal(TemporalType.TIMESTAMP)
    @Column(updatable = false)
    private Date createdTime;

    //更新时间
    @Temporal(TemporalType.TIMESTAMP)
    private Date updatedTime;
}
